<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Zero
  Date: 2016/12/10
  Time: 13:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <title>详细信息</title>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>约战平台</title>
  <meta name="viewport" content="initial-scale=1, maximum-scale=1">
  <link rel="shortcut icon" href="http://favicon.ico">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <!--导入css文件（CDN与本地）-->
  <%--引入sui mobile 框架的css文件--%>
  <link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.2/css/sm.min.css">
  <link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.2/css/sm-extend.min.css">
  <link rel="stylesheet" href="http://g.alicdn.com/sj/qnui/1.5.1/css/sui.min.css">


</head>

<body>

<div class="page-group">
  <div class="page page-current">
    <%------------标题栏--------------%>
    <header class="bar bar-nav">
      <h1 class="title">约战信息</h1>
    </header>

    <div class="content">


      <div class="content-block">
        <div class="tabs">
          <div id="tab3" class="tab active">
            <div class="content-block">
              <%--foreach循环遍历约战记录中已经确认的记录--%>
                <div class="card">
                    <%--卡片卡卡头开始--%>
                  <div class="card-header" style="text-align: center;">

                    <div style="text-align: center !important;width: 100%;">
                      <h2>${team.teamName}</h2>
                    </div>
                  </div>
                    <%--卡片卡卡头结束--%>
                    <%--卡片的中心内容开始--%>
                  <div class="card-content">
                    <div class="card-content-inner" style="border-bottom: 1px solid #e1e1e1;border-radius: 20%">
                      <ul style="list-style: none;font-size: 16px">
                        <%--<li>球队队徽:${team.teamSummary}</li>--%>
                        <li>球队简介:${team.teamSummary}</li>
                      </ul>
                    </div>

                    <div class="card-content-inner">
                      <ul style="list-style: none;font-size: 16px">
                        <li>球队人数:5</li>
                        <li>约战次数:6</li>
                        <li>历史战绩:5胜&nbsp;1负&nbsp;1平</li>
                      </ul>
                    </div>

                    <div class="card-content-inner">

                      <ul style="list-style: none;font-size: 16px">
                        <li>领队:${team.teamLeader}</li>
                        <li>队长:${team.teamCaptain}</li>
                        <li>所在地区:${team.teamArea}</li>
                      </ul>

                    </div>

                  </div>
                    <%--卡片的中心内容结束--%>
                </div>
            </div>
          </div>
        </div>
      </div>







    <%------------------约战表区域开始-------------------%>

      <%--构建表单，输入数据到challenge类中，以便传输到数据库中--%>
      <sf:form method="post" modelAttribute="challenge" enctype="multipart/form-data">
      <div class="list-block">
        <ul>
            <%------------------------输入日期：----------------------%>
          <li>
            <div class="item-content">
              <div class="item-media"><i class="icon icon-form-name"></i></div>
              <div class="item-inner">
                <div class="item-title label">日期：</div>
                <div class="item-input">
                  <sf:input path="challengeDate"></sf:input>
                </div>
              </div>
            </div>
          </li>
            <%---------------------输入开始时间-------------------%>
          <li>
            <div class="item-content">
              <div class="item-media"><i class="icon icon-form-email"></i></div>
              <div class="item-inner">
                <div class="item-title label">开始时间：</div>
                <div class="item-input">
                  <sf:input path="challengeStarttime"></sf:input>
                </div>
              </div>
            </div>
          </li>
            <%----------------------输入结束时间------------------%>
          <li>
            <div class="item-content">
              <div class="item-media"><i class="icon icon-form-password"></i></div>
              <div class="item-inner">
                <div class="item-title label">结束时间：</div>
                <div class="item-input">
                  <sf:input path="challengeEndtime"></sf:input>
                </div>
              </div>
            </div>
          </li>
            <%-------------------输入地点----------------%>
          <li>
            <div class="item-content">
              <div class="item-media"><i class="icon icon-form-password"></i></div>
              <div class="item-inner">
                <div class="item-title label">地点：</div>
                <div class="item-input">
                  <sf:input path="challengeArea"></sf:input>
                </div>
              </div>
            </div>
          </li>
            <%--------------------输入联系人------------------%>
          <li>
            <div class="item-content">
              <div class="item-media"><i class="icon icon-form-password"></i></div>
              <div class="item-inner">
                <div class="item-title label">联系人：</div>
                <div class="item-input">
                  <sf:input path="challengeUser"></sf:input></div>
              </div>
            </div>
          </li>
            <%--------------------输入电话------------------%>
          <li>
             <div class="item-content">
               <div class="item-media"><i class="icon icon-form-password"></i></div>
               <div class="item-inner">
                 <div class="item-title label">电话：</div>
                   <div class="item-input">
                     <sf:input path="challengePhone"></sf:input>
                   </div>
               </div>
             </div>
          </li>



        </ul>
      </div>
        <%---------------------表单结束-------------------%>
        <%-------------------设置完成约战按钮---------------%>
      <div class="content-block">
        <div class="row">
          <input type="submit" value="约战" class="button button-big button-fill button-success"/>
        </div>
      </div>
    </div>
    </sf:form>
  </div>
</div>


<%--引入sui mobile 框架的js文件--%>
<script type="text/javascript" src="http://g.alicdn.com/sj/lib/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="http://g.alicdn.com/sj/qnui/1.5.1/js/sui.min.js"></script>
<script type='text/javascript' src='http://g.alicdn.com/sj/lib/zepto/zepto.min.js' charset='utf-8'></script>
<script type='text/javascript' src='http://g.alicdn.com/msui/sm/0.6.2/js/sm.min.js' charset='utf-8'></script>
<script type='text/javascript' src='http://g.alicdn.com/msui/sm/0.6.2/js/sm-extend.min.js' charset='utf-8'></script>

</body>
</html>
